package com.wp.mapper;
import com.wp.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,Long>{
//
//    // 两表查询
//    @Query("select u.usrName as usrName ,r.roleName as roleName from User u,Role r where u.usrRoleId = r.roleId and u.usrId=?1")
//    public UserInfo getUserInfo(Long usrId);

}
